<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script language="javascript" type="text/javascript" src="http://www.ucmaim.com/Public/Ucmaim/Admin/js/jquery.js"></script>
<script src="http://www.ucmaim.com/Public/Ucmaim/Admin/js/frame.js" language="javascript" type="text/javascript"></script>
<link href="http://www.ucmaim.com/Public/Ucmaim/Admin/css/style.css" rel="stylesheet" type="text/css" />

<!--[if IE 6]>
<script src="http://www.ucmaim.com/Public/Ucmaim/Admin/js/DD_belatedPNG.js" language="javascript" type="text/javascript"></script>
<script>
  DD_belatedPNG.fix('.nav ul li a,.top_link ul li,background');   /* string argument can be any CSS selector */
</script>
<![endif]-->
</head>
<body class="showmenu">
<script src="http://www.ucmaim.com/Public/Ucmaim/Admin/js/Admin/common.js" type="text/javascript"></script>
<table width="100%" height="31px" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">内容栏目管理</div></td>
      </tr>
    </table>

<div class="main">
    <form action="" method="post" id="form_do" name="form_do">
        <div class="operate">
            <div class="left">
            <input type="button" onclick="window.open('<?php echo U('Admin/Content/AddCategory');?>','main')" target="main" class="btn_blue" value="添加栏目">
            </div>
        </div>
        <div class="list">
            <table width="100%">
                <tr>
                    <!--<th><input  name="chkall" type="checkbox" id="chkall" onclick="selectall(this.form)"></th>-->
                    <th>编号</th>
                    <th width="40%">名称</th>
                    <th width="40%">标识</th>
                    <th>操作</th>
                </tr>

                <?php if(empty($list)): ?><tr>
                <td colspan="7">本区域暂无数据显示...</td>
                </tr>
                <?php else: ?>
                <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
                    <!--<td><input type="checkbox" name="class_id[]" value="<?php echo ($vo["id"]); ?>" ></td>-->
                    <td><?php echo ($vo["id"]); ?></td>

                    <td>
                        <span style="color:#000000"><?php echo ($vo["name"]); ?></span>
                    </td>
                    <td>
                        <span style="color:#000000"><?php echo ($vo["label"]); ?></span>
                    </td>
                    <td>
                    <!--<a href="<?php echo U('Admin/Category/category',array('do'=>'add','gc_id'=>$vo['gc_id']));?>">添加子分类</a>-->
                    <a href="<?php echo U('Admin/Content/EditCategory', array('id'=>$vo['id']));?>">修改</a>
                    <a href="<?php echo U('Admin/Content/DelCategory', array('id'=>$vo['id']));?>" class="delete-one">删除</a>
                    <!--<a href="<?php echo U('Admin/Category/category', array('do'=>'check','id'=>$vo['gc_id'],'gift'=>'1'));?>">查看子分类</a>-->
                    </td>
                </tr><?php endforeach; endif; else: echo "" ;endif; endif; ?>
            </table>

        </div>
    </form>
</div>

<script type="text/javascript">
    $('.delete-one').click(function(){
        if( ! window.confirm('确定要删除此条目吗？') ){
            return false;
        }
    });
</script>
</body>
</html>